<?php
namespace app\admin\model;

class AuthGroup extends Base
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

    public function savePerm($role_id,$operations)
    {


        if($operations != 'false'){
            $where['id'] = $role_id;
            $this->update(['rules'=>$operations], $where);
        }

        return true;

    }

}